package org.swust.monitor.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.swust.monitor.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.swust.monitor.entity.dto.SysUserDto;
import org.swust.monitor.entity.vo.QSysUser;
import org.swust.monitor.entity.vo.UserStatusVo;

import java.util.List;

/**
 * <p>
 * 系统用户表 服务类
 * </p>
 *
 * @author hanxinxin
 * @since 2024-12-31
 */
public interface ISysUserService extends IService<SysUser> {
    /**
     * 通过用户名查询用户信息
     *
     * @param nickname 用户名
     * @return 用户信息
     */
    List<SysUser> listByNickname(String nickname);
    /**
     * 查询用户列表
     *
     * @param qSysUser
     * @return 用户信息
     */
    List<SysUser> list(QSysUser qSysUser);

    boolean updateStatusById(Integer userId, boolean status);

    Page<SysUserDto> pageUser(Page<SysUserDto> page, QSysUser qSysUser);

    int resetPassword(Integer userId);


}
